package com.cy.pj.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author YuBaoFu
 * @create 2025/05/28
 * @description
 */
@Controller
@RequestMapping("/")
public class PageController {

    /*用户访问 协议://域名:端口号/doIndexUI 跳转到starter.html页面*/
    @RequestMapping("doIndexUI")
    public String doIndexUI(){
        return "starter";
    }

  /*  @RequestMapping("{menu}/{menu_list}")
    public String doMenuUI(@PathVariable String menu_list){
        *//* templates/pages/sys/menu_list.html*//*
        return "sys/"+menu_list;
    }*/
    /*
    * menu/menu_list
    * dept/dept_list
    * log/log_list
    * */

    @RequestMapping("{module}/{moduleUI}")
    public String doModuleUI(@PathVariable String moduleUI){
        return "sys/" + moduleUI;
    }

    @RequestMapping("/doPageUI")
    public String doPageUI(){
        return "common/page";
    }

    @RequestMapping("/doLoginUI")
    public String doLoginUI(){
        return "login";
    }


}
